$OpenBSD: patch-tools_ck-get-x11-display-device_c,v 1.2 2017/02/06 08:15:02 ajacoutot Exp $

From 2020809724b971881df916289a15aafd725c21ae Mon Sep 17 00:00:00 2001
From: Antoine Jacoutot <ajacoutot@openbsd.org>
Date: Wed, 25 Jan 2017 04:24:23 +0100
Subject: [PATCH 1/2] Fix for OpenBSD VT device naming scheme.

--- tools/ck-get-x11-display-device.c.orig	Wed Jan 25 03:46:42 2017
+++ tools/ck-get-x11-display-device.c	Wed Jan 25 03:47:11 2017
@@ -140,6 +140,8 @@ get_tty_for_display (Display *xdisplay)
 
 #if defined(__NetBSD__)
         display = g_strdup_printf ("/dev/ttyE%ld", vt - 1);
+#elif defined(__OpenBSD__)
+        display = g_strdup_printf ("/dev/ttyC%ld", vt - 1);
 #else
         display = g_strdup_printf ("/dev/tty%ld", vt);
 #endif
